package com.lq.springcloud.service;

import com.lq.springcloud.entities.CommResult;
import com.lq.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



@FeignClient("CLOUD-PAYMENT-SERVICE")
@Component
public interface PaymentFeginService {

    @GetMapping(value = "/payment/get/{id}")
    public CommResult<Payment> getPaymentById(@PathVariable("id") Long id);

    @GetMapping(value = "/payment/timeout")
    public String paymentFeginTimeOut();

}
